package AC;
import java.util.InputMismatchException;
import java.util.Scanner;


public class Kecheng {
    public static void main(String[] args) {
    Scanner in=new Scanner(System.in);
    System.out.println("输入总课时：");
    try {
        int a=in.nextInt();
        System.out.println("课程数：");
        int b=in.nextInt();

        int avg=a/b;
        System.out.println("平均课时："+avg);
        if(a<100){
            throw new Exception("课时太少！");
        }

    } catch (ArithmeticException e) {
        System.out.println(e);
    }catch (InputMismatchException e) {
        System.out.println(e);
    }catch (Exception e) {
        e.printStackTrace();
    }
}

}
